'use strict';

const Controller = require('egg').Controller;

class HomeController extends Controller {
    async index() {
        let resp = await this.service.articleService.articleIndex();
        const { ctx } = this;
        ctx.body = resp;
    }

    async delete() {
        const { ctx } = this;
        let url_params = ctx.params; // 获取 url 的参数
        console.log(url_params);
        ctx.body = url_params;
    }
}

module.exports = HomeController;
